/*Copyright (c) 2020 Orca Data Technology(Xi'an)CO.LTD. All rights reserved. * Create by Jisr on 2022/5/24 11:43 AM*/

import {Stage} from '@/template/stageList';

export const StageAPI = {
    addStage: (stage: Stage) => {
        return window.db.onPush('stage', stage);
    },
    getStage: () => {
        return window.db.onPull('stage');
    },
    updateStage: (stage: Stage) => {
        return window.db.onUpdate('stage', stage);
    },
    deleteStage: (id: number) => {
        return window.db.onDelete('stage', id);
    }
};
